import {Injectable} from '@angular/core';
import {BehaviorSubject} from 'rxjs';

@Injectable()
export class HeaderService {
  private showOrHideHeader = new BehaviorSubject<boolean>(true); // First subscription value will be true.
  // This method returns a BehaviorSubject that you can subscribe to, or emit new value from.
  getHeaderFlag() {
    return this.showOrHideHeader;
  }
}
